package com.example.demo.Service.impl;

import com.example.demo.Service.IProductDetailService;
import com.example.demo.entity.vo.ProductDetailVo;
import com.example.demo.mapper.ProductDetailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IProductDetailImpl implements IProductDetailService {

    @Autowired
    private ProductDetailMapper productDetailMapper;
    @Override
    public ProductDetailVo vo(Long productId) {
        return productDetailMapper.vo(productId);
    }

    @Override
    public int count(Long userId, Long productId) {
        return productDetailMapper.count(userId,productId);
    }
}
